<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="org.lsms.dao.impl.*" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>Administrator Starting Page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="LSMS,ICSEE,MEMBER">
	
	<link rel="stylesheet" type="text/css" href="../css/author_layout.css">
	<link rel="stylesheet" type="text/css" href="../css/hyper_link_style.css">

  </head>
  
  <body>
	<div id="container">
		<div id="header" class="logo_image"></div>
		<div class="nav"></div>
		<div id="author_menu" class="border">
			<table border="0" width="100%"  >
				<tr>
					<td  bgcolor="#CCCCCC"><a href="../index.jsp">Home</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="site_setting.jsp">Site Setting</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="release_new_note.jsp">Release new note</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="mail_notify.jsp">Mail Notify</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="modify_mail_content.jsp">Modify Mail Content</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="modify_info.jsp">Modify Information</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="../logout">Log Out</a></td>
				</tr>
			</table>
		</div>
		
		<div id="content" class="bg_color border" style="height:320px">
			<br>
			<b>Site Settings</b>
			<form action="../site_setting" method="get">
			<table align="center" border="0" width="400px">
			<%
				DaoImpl impl = new DaoImpl();
				HashMap<String,Integer> map = impl.get_site_setting();
				int paper_submit = map.get("paper_submit");
				int paper_edit = map.get("paper_edit");
				int user_register = map.get("user_register");
				int member_invite = map.get("member_invite");
				int reviewer_invite = map.get("reviewer_invite");
				int paper_notif_sent = map.get("paper_notif_sent");
				int index_view = map.get("index_view");
				int index_upload = map.get("index_upload");
			 %>
			<tr>
				<td>
				<b>Paper Submission</b>
				</td>
				<td>
				<input type="radio" name="paper_submit" value="0" <%=paper_submit==0? "checked":"" %>>Forbidden
				</td>
				<td>
				<input type="radio" name="paper_submit" value="1" <%=paper_submit==1? "checked":"" %>>Allow
				</td>
			</tr>
			<tr>
				<td>
				<b>Paper Editing</b>
				</td>
				<td>
				<input type="radio" name="paper_edit" value="0" <%=paper_edit==0? "checked":"" %>>Forbidden
				</td>
				<td>
				<input type="radio" name="paper_edit" value="1" <%=paper_edit==1? "checked":"" %>>Allow
				</td>
			</tr>
			<tr>
				<td>
				<b>Author Register</b>
				</td>
				<td>
				<input type="radio" name="user_register" value="0" <%=user_register==0? "checked":"" %>>Forbidden
				</td>
				<td>
				<input type="radio" name="user_register" value="1" <%=user_register==1? "checked":"" %>>Allow
				</td>
			</tr>
			<tr>
				<td>
				<b>Pcmember Inviting</b>
				</td>
				<td>
				<input type="radio" name="member_invite" value="0" <%=member_invite==0? "checked":"" %>>Forbidden
				</td>
				<td>
				<input type="radio" name="member_invite" value="1" <%=member_invite==1? "checked":"" %>>Allow
				</td>
			</tr>
			<tr>
				<td>
				<b>Pcreviewer Inviting</b>
				</td>
				<td>
				<input type="radio" name="reviewer_invite" value="0" <%=reviewer_invite==0? "checked":"" %>>Forbidden
				</td>
				<td>
				<input type="radio" name="reviewer_invite" value="1" <%=reviewer_invite==1? "checked":"" %>>Allow
				</td>
			</tr>
			<tr>
				<td>
				<b>Paper's Index Statue viewing</b>
				</td>
				<td>
				<input type="radio" name="index_view" value="0" <%=index_view==0? "checked":"" %>>Forbidden
				</td>
				<td>
				<input type="radio" name="index_view" value="1" <%=index_view==1? "checked":"" %>>Allow
				</td>
			</tr>
			<tr>
				<td>
				<b>Paper Notify Sent</b>
				</td>
				<td>
				<input type="radio" name="paper_notif_sent" value="0" <%=paper_notif_sent==0? "checked":"" %>>Forbidden
				</td>
				<td>
				<input type="radio" name="paper_notif_sent" value="1" <%=paper_notif_sent==1? "checked":"" %>>Allow
				</td>
			</tr>
			<tr>
				<td>
				<b>Paper's Register Uploading</b>
				</td>
				<td>
				<input type="radio" name="index_upload" value="0" <%=index_upload==0? "checked":"" %>>Forbidden
				</td>
				<td>
				<input type="radio" name="index_upload" value="1" <%=index_upload==1? "checked":"" %>>Allow
				</td>
			</tr>
			<tr>
				<td style="text-align:right">
				<input type="submit" name="submit" value="Submit">
				</td>
			</tr>
			</table>
		</form>	
		</div>
		
		<div class="nav"></div>
			
		<div id="footer" class="footer_color border">
			<p align="center"><b>&copy;2010 LSMS-All Rights Reserved.</b></p>
			<p align="center"> <b>Powered by Shu.</b></p>
		</div>
	</div>
  </body>
</html>
